package com.the9tcat.deliverycoming.util;

public class CommonMethod {
	public static String getFileType(java.io.File file){
		String name = file.getName();
		if(name.endsWith("jpg")||name.endsWith("JPG")){
			return "jpeg";
		}
		if(name.endsWith("png")||name.endsWith("PNG")){
			return "x-png";
		}
		if(name.endsWith("gif")||name.endsWith("GIF")){
			return "gif";
		}
		return "";
	}
}
